<script type="text/javascript">
    function subImei(){
        var imei=$('#imei').val();
        if(imei==''){
            alert('请先输入IMEI码');
            return false;
        }
    }
</script>

<!--菜单 start-->
<?php $this->load->view('defaults/common/left');?>
<!--菜单 end-->
<div id="content">
  <div class="page-header">
    <div class="container-fluid">
      <h1><?=lang('menu_cpgl')?></h1>
      <?=$this->breadcrumb->generateHTML();?>
    </div>
  </div>
  <div class="container-fluid">
    <div class="panel panel-default">
      <div class="panel-heading">
        <h3 class="panel-title"><i class="fa fa-search"></i><?=lang('menu_imei_getimei')?></h3>
      </div>
      <div class="panel-body">
        <div class="well" style="padding:0 19px;">
          <div class="row">
            <form action="<?=blang_url('imei/imeictl/GetImei')?>" method="post">
                <div class="col-sm-6">
                    <div class="form-group">
                        <label class="control-label">IMEI</label>
                        <input class="form-control" type="text" size="50" id="imei" name="imei">
                    </div>
                </div>
                <div class="form-group col-sm-6" style="padding-top: 37px;">
                    <input type="submit" name="searchSubmit" class="btn btn-primary pull-left"  value="<?=lang('file_cx')?>" />
                </div>
            </form>
            
          </div>
        </div>
        <div class="table-responsive">
            <table class="table table-bordered table-hover oms-table">
              <thead>
                <tr>
                  <td class="text-left">IMEI</td>
                  <td class="text-left">name</td>
                  <td class="text-right">维保开始时间</td>
                  <td class="text-right">维保结束时间</td>
                </tr>
              </thead>
              <tbody>
                <tr class="moves" align="center">
                <?php if($ImeiInfo['data']){?>
                    <td class="text-left"><?=$ImeiInfo['data']['imei']?></td>
                    <td class="text-left"><?=$ImeiInfo['data']['name']?></td>
                    <td class="text-right"><?=$ImeiInfo['data']['start_date']?></td>
                    <td class="text-right"><?=$ImeiInfo['data']['end_date']?></td>
                <?php }else{?>
                    <td colspan="4" class="emptyNumber"><?=$ImeiInfo['message']?>....</td>
                <?php } ?>
            </tr>
            </tbody>
            </table>
          </div>
      </div>
    </div>
    </div>
</div>

